import { MOCK_ADMINS } from '~/utils/mock-data';

export default defineEventHandler(async (event) => {
  const { id } = getQuery(event);
  const index = MOCK_ADMINS.findIndex((item) => item.id === id);
  if (index !== -1) {
    MOCK_ADMINS.splice(index, 1);
  }
  return useResponseSuccess(null);
});
